<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">/*
  Generated by kissy-xtemplate.*/
KISSY.add('component/control/render-xtpl', function () {
    return function (scopes, S, undefined) {
        var buffer = &quot;&quot;,
            config = this.config,
            engine = this,
            utils = config.utils;
        var runBlockCommandUtil = utils[&quot;runBlockCommand&quot;],
            getExpressionUtil = utils[&quot;getExpression&quot;],
            getPropertyOrRunCommandUtil = utils[&quot;getPropertyOrRunCommand&quot;];
        buffer += '&lt;div id=&quot;';
        var id0 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 1, undefined, false);
        buffer += getExpressionUtil(id0, true);
        buffer += '&quot;\r\n class=&quot;';
        var config2 = {};
        var params3 = [];
        params3.push('');
        config2.params = params3;
        var id1 = getPropertyOrRunCommandUtil(engine, scopes, config2, &quot;getBaseCssClasses&quot;, 0, 2, true, undefined);
        buffer += id1;
        buffer += '\r\n';
        var config4 = {};
        var params5 = [];
        var id6 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;elCls&quot;, 0, 3, undefined, true);
        params5.push(id6);
        config4.params = params5;
        config4.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += '\r\n ';
            var id7 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;.&quot;, 0, 4, undefined, false);
            buffer += getExpressionUtil(id7, true);
            buffer += '  \r\n';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config4, &quot;each&quot;, 3);
        buffer += '\r\n&quot;\r\n\r\n';
        var config8 = {};
        var params9 = [];
        var id10 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;elAttrs&quot;, 0, 8, undefined, true);
        params9.push(id10);
        config8.params = params9;
        config8.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += ' \r\n ';
            var id11 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;xindex&quot;, 0, 9, undefined, false);
            buffer += getExpressionUtil(id11, true);
            buffer += '=&quot;';
            var id12 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;.&quot;, 0, 9, undefined, false);
            buffer += getExpressionUtil(id12, true);
            buffer += '&quot;\r\n';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config8, &quot;each&quot;, 8);
        buffer += '\r\n\r\nstyle=&quot;\r\n';
        var config13 = {};
        var params14 = [];
        var id15 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;elStyle&quot;, 0, 13, undefined, true);
        params14.push(id15);
        config13.params = params14;
        config13.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += ' \r\n ';
            var id16 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;xindex&quot;, 0, 14, undefined, false);
            buffer += getExpressionUtil(id16, true);
            buffer += ':';
            var id17 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;.&quot;, 0, 14, undefined, false);
            buffer += getExpressionUtil(id17, true);
            buffer += ';\r\n';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config13, &quot;each&quot;, 13);
        buffer += '\r\n&quot;&gt;';
        return buffer;
    }
});</pre>
</body>
</html>
